﻿@model SingleBlog.Core.SettingModels.GeneralSettingModel
@{
    ViewBag.Title = "站点信息";
}

<form method="post">
    @if (ViewContext.ModelState.ErrorCount > 0)
    {
        <div asp-validation-summary="All" class="alert alert-danger"></div>
    }
    else if (TempData["Submit"] != null)
    {
        <div class="alert alert-success">
            <h4><i class="fa fa-check-circle"></i> 保存成功</h4>
        </div>
    }
    <div class="form-group">
        <div class="row">
            <label asp-for="SiteName" class="col-2 text-right">站点名称：</label>
            <input type="text" class="form-control col-6" asp-for="SiteName" />
            <span class="col text-muted">站点名称，会显示在浏览器标题栏上。</span>
        </div>
    </div>
    <div class="form-group">
        <div class="row">
            <label asp-for="SiteUrl" class="col-2 text-right">站点Url：</label>
            <input type="text" class="form-control col-6" asp-for="SiteUrl" />
            <span class="col text-muted">可访问该站点的 url。</span>
        </div>
    </div>
    <div class="form-group">
        <div class="row">
            <label asp-for="Keywords" class="col-2 text-right">SEO 关键字：</label>
            <input type="text" class="form-control col-6 " asp-for="Keywords" />
            <span class="col text-muted">表示 <code>&lt;meta name="keywords"></code> 的关键字，用英文“,”分割 </span>
        </div>
    </div>
    <div class="form-group">
        <div class="row">
            <label asp-for="Description" class="col-2 text-right">SEO 关键字：</label>
            <textarea class="form-control col-6 " asp-for="Description" rows="5"></textarea>
            <span class="col text-muted">表示 <code>&lt;meta name="description"></code> 的站点描述的文本 </span>
        </div>
    </div>
    <div class="form-group">
        <div class="row">
            <label asp-for="IsClosed" class="col-2 text-right">站点关闭：</label>
            <div class="checkbox-inline">
                <label>
                    <input type="radio" asp-for="IsClosed" value="true" /> 是
                </label>
                <label>
                    <input type="radio" asp-for="IsClosed" value="false" /> 否
                </label>
            </div>
            <span class="col text-muted">选择“是”时，仅管理员可访问站点 </span>
        </div>
    </div>
    <div class="form-group">
        <div class="row">
            <label asp-for="CloseReason" class="col-2 text-right">站点关闭描述：</label>
            <textarea class="form-control col-6 " asp-for="CloseReason" rows="5"></textarea>
            <span class="col text-muted">自定义站点关闭时的文字，支持 HTML </span>
        </div>
    </div>
    <div class="form-group">
        <div class="row">
            <label asp-for="BeiAn" class="col-2 text-right">备案信息：</label>
            <input type="text" class="form-control col-6 " asp-for="BeiAn" />
            <span class="col text-muted"> </span>
        </div>
    </div>
    <div class="form-group">
        <div class="row">
            <label asp-for="CustomFooter" class="col-2 text-right">底部代码：</label>
            <textarea id="@Html.IdFor(m=>m.CustomFooter)" class="form-control col-6 " asp-for="CustomFooter" rows="4"></textarea>
            <span class="col text-muted"> </span>
        </div>
    </div>
    <div class="form-group">
        <div class="row">
            <label asp-for="StatisticCode" class="col-2 text-right">第三方统计代码：</label>
            <textarea id="@Html.IdFor(m=>m.StatisticCode)" class="form-control col-6 " asp-for="StatisticCode" rows="4"></textarea>
            <span class="col text-muted">  </span>
        </div>
    </div>
    <div class="form-group">
        <div class="row">
            <label asp-for="AllowComment" class="col-2 text-right">允许回复：</label>
            <div class="checkbox-inline">
                <label>
                    <input type="radio" asp-for="AllowComment" value="true" /> 是
                </label>
                <label>
                    <input type="radio" asp-for="AllowComment" value="false" /> 否
                </label>
            </div>
            <span class="col text-muted">选择“否”时，将无法对文章进行回复 </span>
        </div>
    </div>
    <div class="form-group">
        <button class="btn btn-primary" type="submit">保 存</button>
    </div>
</form>